<?php

/**
 * interface for Search filter.
 * @package local.includes.SearchingCore
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
interface ISearchFilter {
    	
    /**
     * Render search filter.
     *
     * @return HTML
     */
	function renderSearchFilter();
	
	/**
	 * build sql for searching.
	 * @param $filterData
	 * 
	 * @return unknown_type
	 * array (
     *        'cols'      =>  "",
     *        'from'      =>  "",
     *        'where'     =>  "",
     *        'orderby'   =>  ""); 
	 */
	function buildSearchFilterSql($filterData = array());
	
	/**
	 * 
	 * @param $rawResultData
	 * @return array[SearchResultModel obj]
	 */
	function buildResultModel($rawResultData = array());
	
    
}
?>